package com.example.demo.controller;

import com.example.demo.Service.GetZyPatInfoService;
import com.example.demo.beans.GetRecipeListItem2;
import com.example.demo.beans.GetZyPatInfoRequest;
import com.example.demo.beans.GetZyPatInfoResponse;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2018-05-24.
 */
@RestController
public class GetZyPatInfoController {
@Autowired
@Qualifier("GetZyPatInfoService")
    private GetZyPatInfoService service;
    @ResponseBody
    @RequestMapping(value = "GetZyPatInfo",produces = {"application/xml"})
    public GetZyPatInfoResponse getZyPatInfoResponse(@RequestBody(required = false)GetZyPatInfoRequest request)
    { if(request!=null){
        return service.getZyInfo(request);
    }
      return  null;
    }

}
